package com.easondongh.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.easondongh.system.domain.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author EasonDongH
 * @date 2020/4/28 16:07
 */
public interface SysUserMapper extends BaseMapper<SysUser> {
    /**
     * 为该用户添加角色
     * @param uid
     * @param rids
     */
    void insertRoles(@Param("uid") Integer uid, @Param("rids") List<Integer> rids);

    List<Integer> selectRidByUid(Integer uid);

    Integer getMaxOrderNum();

    void updateAvatar(@Param("id") Integer id, @Param("url") String url);
}